import {
    useRouterStore
} from '@/common/stores/router.store' ;

export default class{

    #path ;

    constructor({
        path
    }){

        this.#path = path ;
    }

    execute(){

        useRouterStore().redirect(this.#path) ;

        return {
            next:true
        }
    }
}